<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{pcPurchaseOrderSupplierAddrBean.id}"/>
		<f:event type="preRenderView" listener="#{pcPurchaseOrderSupplierAddrBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Pc Purchase Order Supplier Addr"/>

	<ui:define name="header">
		Pc Purchase Order Supplier Addr
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty pcPurchaseOrderSupplierAddrBean.id}">
				Edit existing Pc Purchase Order Supplier Addr
			</c:when>
			<c:otherwise>
				Create a new Pc Purchase Order Supplier Addr
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrSysAddrType" value="Sys Addr Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysAddrTypeBean.converter}" id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrSysAddrType" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.sysAddrType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddrTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrSysAddrType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrSysAddr01" value="Sys Addr 01:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysAddr01Bean.converter}" id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrSysAddr01" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.sysAddr01}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddr01Bean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrSysAddr01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPcPurchaseOrder" value="Pc Purchase Order:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{pcPurchaseOrderBean.converter}" id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPcPurchaseOrder" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.pcPurchaseOrder}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{pcPurchaseOrderBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPcPurchaseOrder" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrNo" value="Po Supplier Addr No:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrNo" maxLength="20" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.poSupplierAddrNo}"/>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrMoo" value="Po Supplier Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrMoo" maxLength="10" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.poSupplierAddrMoo}"/>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrSoi" value="Po Supplier Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrSoi" maxLength="100" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.poSupplierAddrSoi}"/>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrRoad" value="Po Supplier Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrRoad" maxLength="100" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.poSupplierAddrRoad}"/>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrBuilding" value="Po Supplier Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrBuilding" maxLength="100" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.poSupplierAddrBuilding}"/>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrFloor" value="Po Supplier Addr Floor:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrFloor" maxLength="50" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.poSupplierAddrFloor}"/>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrFloor" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrRoom" value="Po Supplier Addr Room:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrRoom" maxLength="50" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.poSupplierAddrRoom}"/>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrRoom" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrName01" value="Po Supplier Addr Name 01:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrName01" maxLength="100" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.poSupplierAddrName01}"/>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrName01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrPostcode" value="Po Supplier Addr Postcode:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrPostcode" maxLength="20" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.poSupplierAddrPostcode}"/>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrPostcode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrPhoneNo" value="Po Supplier Addr Phone No:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrPhoneNo" maxLength="20" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.poSupplierAddrPhoneNo}"/>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrPhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrFaxNo" value="Po Supplier Addr Fax No:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrFaxNo" maxLength="20" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.poSupplierAddrFaxNo}"/>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrFaxNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrMobileNo" value="Po Supplier Addr Mobile No:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrMobileNo" maxLength="20" value="#{pcPurchaseOrderSupplierAddrBean.pcPurchaseOrderSupplierAddr.poSupplierAddrMobileNo}"/>
					<h:message for="pcPurchaseOrderSupplierAddrBeanPcPurchaseOrderSupplierAddrPoSupplierAddrMobileNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{pcPurchaseOrderSupplierAddrBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty pcPurchaseOrderSupplierAddrBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{pcPurchaseOrderSupplierAddrBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{pcPurchaseOrderSupplierAddrBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>